package com.ycp.erp.employee.presenter;

import android.content.Context;

import com.one.common.presenter.BaseApiPresenter;
import com.one.common.view.base.BaseActivity;
import com.one.common.view.base.IListView;
import com.ycp.erp.employee.model.EmployeeModel;
import com.ycp.erp.employee.model.bean.Employee;

import java.util.ArrayList;

/**
 * Class Des:
 * Created by bjh on 2021/8/24.
 */
public class EmployeeMangerPresenter extends BaseApiPresenter<IListView, EmployeeModel> {
    public EmployeeMangerPresenter(IListView mView, Context mContext) {
        super((IListView) mView, mContext, new EmployeeModel((BaseActivity) mContext));
    }
    public void getEmployees(){
        ArrayList<Employee> employees=new ArrayList<>();
        employees.add(new Employee("陈小军","13555547895","管理员","2021-09-06 11:48:16",1));
        employees.add(new Employee("严小荣","13557777895","管理员","2021-09-06 11:48:16",0));
        employees.add(new Employee("张三","13555666665","管理员","2021-09-06 11:48:16",0));
        employees.add(new Employee("李四","13588888885","管理员","2021-09-06 11:48:16",0));
        employees.add(new Employee("陈小军","13555547895","管理员","2021-09-06 11:48:16",1));
        employees.add(new Employee("严小荣","13557777895","管理员","2021-09-06 11:48:16",0));
        employees.add(new Employee("张三","13555666665","管理员","2021-09-06 11:48:16",0));
        employees.add(new Employee("李四","13588888885","管理员","2021-09-06 11:48:16",0));
        employees.add(new Employee("陈小军","13555547895","管理员","2021-09-06 11:48:16",1));
        employees.add(new Employee("严小荣","13557777895","管理员","2021-09-06 11:48:16",0));
        employees.add(new Employee("张三","13555666665","管理员","2021-09-06 11:48:16",0));
        employees.add(new Employee("李四","13588888885","管理员","2021-09-06 11:48:16",0));
        employees.add(new Employee("陈小军","13555547895","管理员","2021-09-06 11:48:16",1));
        employees.add(new Employee("严小荣","13557777895","管理员","2021-09-06 11:48:16",0));
        employees.add(new Employee("张三","13555666665","管理员","2021-09-06 11:48:16",0));
        employees.add(new Employee("李四","13588888885","管理员","2021-09-06 11:48:16",0));
        employees.add(new Employee("陈小军","13555547895","管理员","2021-09-06 11:48:16",1));
        employees.add(new Employee("严小荣","13557777895","管理员","2021-09-06 11:48:16",0));
        employees.add(new Employee("张三","13555666665","管理员","2021-09-06 11:48:16",0));
        employees.add(new Employee("李四","13588888885","管理员","2021-09-06 11:48:16",0));
        mView.loadSuccess(employees);
    }
}
